//
// NeL - bindings
// Copyright (C) 2010 Naush
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as
//published by the Free Software Foundation, either version 3 of the
//License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.
package org.ryzom.nel.misc;

public class IDisplayer {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public IDisplayer(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(IDisplayer obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nelmiscJNI.delete_IDisplayer(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void display(SWIGTYPE_p_NLMISC__CLog__TDisplayInfo args, String message) {
    nelmiscJNI.IDisplayer_display(swigCPtr, this, SWIGTYPE_p_NLMISC__CLog__TDisplayInfo.getCPtr(args), message);
  }

  public void setDisplayerName(String value) {
    nelmiscJNI.IDisplayer_DisplayerName_set(swigCPtr, this, value);
  }

  public String getDisplayerName() {
    return nelmiscJNI.IDisplayer_DisplayerName_get(swigCPtr, this);
  }

  public static String logTypeToString(CLog.TLogType logType, boolean longFormat) {
    return nelmiscJNI.IDisplayer_logTypeToString__SWIG_0(logType.swigValue(), longFormat);
  }

  public static String logTypeToString(CLog.TLogType logType) {
    return nelmiscJNI.IDisplayer_logTypeToString__SWIG_1(logType.swigValue());
  }

  public static String dateToHumanString() {
    return nelmiscJNI.IDisplayer_dateToHumanString__SWIG_0();
  }

  public static String dateToHumanString(SWIGTYPE_p_time_t date) {
    return nelmiscJNI.IDisplayer_dateToHumanString__SWIG_1(SWIGTYPE_p_time_t.getCPtr(date));
  }

  public static String dateToComputerString(SWIGTYPE_p_time_t date) {
    return nelmiscJNI.IDisplayer_dateToComputerString(SWIGTYPE_p_time_t.getCPtr(date));
  }

}
